package com.yueyang.sojourn.server.service.wx.model;


import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

/**
 * mico.sharp  WxSessionKey
 *
 * @author Guangshan
 * @date 2017/11/5 13:19
 * @since 0.0.1
 */
public class WxSessionKey implements Serializable {

    /**
     * 用户唯一标识
     */
    @JsonProperty("openid")
    private String openId;

    /**
     * 会话密钥
     */
    @JsonProperty("session_key")
    private String sessionKey;

    /**
     * 用户在开放平台的唯一标识符。本字段在满足一定条件的情况下才返回。具体参看UnionID机制说明
     */
    @JsonProperty("unionid")
    private String unionId;

    /**
     * 过期时长
     */
    @JsonProperty("expires_in")
    private Integer expiresIn;

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getSessionKey() {
        return sessionKey;
    }

    public void setSessionKey(String sessionKey) {
        this.sessionKey = sessionKey;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    @Override
    public String toString() {
        return "WxSessionKey{" +
                "openId='" + openId + '\'' +
                ", sessionKey='" + sessionKey + '\'' +
                ", unionId='" + unionId + '\'' +
                ", expiresIn=" + expiresIn +
                '}';
    }
}
